<?php
header('Content-type:text/html;charset=utf8');
/**
 * xysc users Version1.0
 * ==================================
 * Copy 2016-2017
 * Web:www.xjh7.com
 * ==================================
 * Author:xjh
 * Date:2016-3-1
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<link rel="stylesheet"  href="<?php echo backweb_CSS_URL;?>index.css" />
<style>

</style>
</head>
<body>
		<div class="place" >
		<span>位置：</span>
			<ul class="placeul">
				<li><a href="#">首页</a></li>
				<li><a href="./index.php?r=backweb/store/storeTop">店铺列表</a></li>
				<li><a href="#">新增品牌</a></li>
			</ul>
		</div>
		<table class="list_table mt10">
		<form action="./index.php?r=backweb/store/storeupd&store_id=<?php echo $info['store_id']?>"  method="post">
		
			<tr>
				 <td class="td_center wh100">店铺名称：</td>
				 <td>
				     <input type="text" name="store_name"  value="<?php echo $info['store_name'];?>"  class="input-text" />
				 </td>		
			  </tr>
			 
			  <tr>
				 <td class="td_center wh100">店铺简介：</td>
				 <td>
				     <textarea name="store_info" class="input-text wh500"   cols="25" rows="3" ><?php echo $info['store_info'];?></textarea>
				 </td>		
			  </tr>	
			   <tr>
				 <td class="td_center wh100">认证类型：</td>
				 <td>
				     <input type="text" name="store_type"  value="<?php echo $info['store_type'];?>" class="input-text" />
				 </td>		
			  </tr>	
			  <tr>
				 <td class="td_center wh100">经营年数：</td>
				 <td>
				     <input type="text" name="store_years"  value="<?php echo $info['store_years'];?>"  class="input-text" />
				 </td>		
			  </tr>	
			  <tr>
				 <td class="td_center wh100">拥有者：</td>
				 <td>
	  							<?php if($user_type == '商家'){?>
	  							<?php echo $login_name;?>
	  							<input type="hidden" value="<?php echo $login_id;?>" name="store_owner" />
								<?php }else{?>
								<select name="store_owner" class="select" >
								<?php  foreach ($user_info as $_v){?>
								<option value="<?php echo $_v['user_id'];?>" ><?php echo $_v['user_name'];?></option>
								<?php }}?>
						</td>		
			  </tr>	
			 
			  	<tr>
				 <td class="td_center wh100">排序：</td>
				 <td>
					 <input type="text"  name="store_sort"   value="<?php echo $info['store_sort'];?>"  class="text sort" style="border:1px solid #ccc;width:40px;"/>
				 </td>		
			  </tr>
			 
				<tr>
					<td class="td_center wh100">是否开店：</td>
					<td> <input type="radio" name="open" value="1"  <?php if($info['open']) echo 'checked="checked" '?> <?php if(!$info['active'] && $user_type == '商家') echo 'disabled="disabled"'?>   />开店
					         <input type="radio" name="open" value="0" <?php if(!$info['open']) echo 'checked="checked" '?> <?php if(!$info['active'] && $user_type == '商家') echo 'disabled="disabled"'?>  />关店
					</td>
				</tr>
				
				<tr>
				  <td class="td_center">
				    <input type="submit" name="send" id="btsave" value="修改" class="btn btn82 btn_save ml25" />				
				 </td>
				 <td>
				   <input type="reset" value="重置" class="btn btn82 btn_res ml10" />
				</td>
			 </tr>
		</form>
			</table>
			
</body>
</html>